const mongoose = require("mongoose");
const orderGoodsSchema = new mongoose.Schema({//创建骨架
    goodId: { type: mongoose.Schema.Types.ObjectId, ref: "goods" },     // 所属订单的商品 id
    count: String       // 当前商品数量
}, { versionKey: false });
//根据骨架创建模板
const orderGoodsModel = mongoose.model('orderGoods', orderGoodsSchema, "orderGoods");